package com.atstudy.map;

import java.util.Comparator;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2023/1/4 10:02
 * @copyright: 博为峰
 */
public class ComparatorByName implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o1.getName().compareTo(o2.getName());
    }
}
